import { get } from "../utils/request";

export const loadProductsAPI = (page = 1, category = "") =>
  get("/api/v1/products", {
    page,
    category,
  });

export const loadProductByIdAPI = (id) => get("/api/v1/products/" + id);
